﻿using ZYCommon;
using System;

namespace TextEditor
{
    

    public class A_OwnerSection : A_Action
    {
        public override string ActionName()
        {
            return "ownersection";
        }

        public override bool Execute()
        {
            if (StringCommon.isBlankString(base.Param1))
            {
                base.Param1 = null;
            }
            else
            {
                base.Param1 = base.Param1.Trim();
            }
            if (base.OwnerDocument.KBBuffer != null)
            {
                base.OwnerDocument.KBBuffer.OwnerSection = base.Param1;
            }
            return true;
        }
    }
}

